package com.gamificationlibrary.model;

import java.io.Serializable;

import com.gamificationlibrary.model.Area;

public class Score implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5574473512292706076L;
	/**
	 * 
	 */
	private int value;
	private Area area;
	private int numDays;
	public static int ALLTIME=0;
	public static int DAILY=1;
	public static int WEEKLY=7;
	public static String ALLCOUNTRY="AllCountry";
	
	public Score()
	{
		value=0;
		numDays=Score.ALLTIME;
		setArea(new Area(Score.ALLCOUNTRY,null));
	}
	
	public Score(int value)
	{
		this.value=value;
		numDays=Score.ALLTIME;
		setArea(new Area(Score.ALLCOUNTRY,null));
	}
	
	public Score(int value, int numDays)
	{
		this.value=value;
		this.numDays=numDays;
		setArea(new Area(Score.ALLCOUNTRY,null));
	} 
	
	public Score(int value, Area area)
	{
		this.value=value;
		numDays=Score.ALLTIME;
		setArea(area);
	} 
	
	//////begin get/set
	public int getNumDays() {
		return numDays;
	}

	public void setNumDays(int numDays) {
		this.numDays = numDays;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	////end get/set
	
	public void increase(int value)
	{
		this.value=this.value+value;
	}
	
}
